<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品交易快照-{{$SEO['title']}}</title>
    <meta name="keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{$SEO['description']}}"/>

    <!--公用css引用-->
    @include('front.common.style')
            <!--END/公用css引用-->
    <link rel="stylesheet" href="{{ URL::asset('/') }}css/detail.css">
</head>
<body>

@inject('pictureService','App\Interfaces\PictureService')
@inject('goodsService','App\Interfaces\GoodsService')
@inject('userCollectionService','App\Interfaces\UserCollectionService')
@inject('brandService','App\Interfaces\BrandService')

<?php
if(empty($order_goods)){
    echo '商品快照不存在！';
}

//dd($order_goods);
$shopObj = $goodsService->getShop($order_goods->shop_id);
$shopInCollection=isset($user)?$userCollectionService->isInCollection($user_id,'SHOP',$order_goods->shop_id):false;

$brandObj = $brandService->get($order_goods->brand_id);
?>
<!--公共头部-->
@include('front.common.header-noNav')
        <!--END/公共头部-->


<!--页面主体-->
<div class="inbox snapshot">
    <div class="goods-name" title="{{$order_goods->goods_name}}">{{$order_goods->goods_name}}</div>
    <div class="fn-fl img">
        <img src="{{$pictureService::thumb($order_goods->goods_thumb, 800, 800)}}" alt="{{$order_goods->goods_name}}"  title="{{$order_goods->goods_name}}">
    </div>

    <div class="fn-fl params-wrap">
        <ul class="params-list">
            <li>
                <div class="label fn-dib">价格：</div>
                <span class="text-color-1 font-24">{{$order_goods->shop_price}}</span>元
            </li>
            <li class="fn-mb20">
                <div class="label fn-dib"></div>
            </li>
            <li class="fn-fl ui-50">
                <div class="label fn-dib">商品类型：</div>
                @if($order_goods->type==0)
                    一般商品
                @elseif($order_goods->type==1)
                    e贸易商品
                @endif

            </li>
            <li class="fn-fl ui-50">
                <div class="label fn-dib">来源：</div> {{$order_goods->resource}}
            </li>
            <li class="fn-fl ui-50">
                <div class="label fn-dib">数量：</div>{{$order_goods->buy_number}}
            </li>
            
        </ul>
        <div class="fn-clear"></div>
        <div class="bl-notes bl-notes-warning">
            <p>您现在查看的是 <a href="" class="text-color-11 link">商品快照</a></p>
            <p>该宝贝在{{date('Y-m-d H:i:s' ,$order_goods->add_time)}}创建。</p>
            <a class="text-color-11 link" href="{{route('front.goods.detail', [$order_goods->goods_id])}}" target="_blank">点此查看最新宝贝详情</a>
        </div>



    </div>

    <!--商品详情展示-->
    <div class="goods-detail ">
        <!--店铺信息-->
        
        <!--END/店铺信息-->
        <div class="fn-clear fn-mt4"></div>

    </div>
    <!--END/商品详情展示-->

</div>
<!--商品介绍及评论-->
<div class="inbox detail-box">

    <!--主体部分-->
    <div class="bl-tab tab-skin-tline2">
        <ul class="tab-head">
            <li class="tab cur"><a class="ui-brd-l">商品详情</a></li>
        </ul>
        <div class="tab-con  ui-brd-box1 ui-nobrd-t">
            <div class="tab-show" style="display: block;">
                <div class="detail-info">
                    <!--属性-->
                    <ul class="ui-cols-3 params">
                        <li class="col">
                            <span class="w-7em fn-tr">商品品牌：</span>
                            <span class="info">
                                @if($brandObj)
                                    {{$brandObj->brand_name}}

                                @endif
                            </span>
                        </li>

                    </ul>
                    <!--END/属性-->

                    <!--跨境购物流程-->
                    <div class="shop-step">
                        <div class="step-tit">跨境购物流程</div>
                        <ul class="ui-cols-5">
                            <li class="col">
                                <i class="icon icon-arrow-r5 arrow"></i>
                                <i class="icon icon-step1"></i>
                                <p class="info">全球正品采购</p>
                            </li>
                            <li class="col">
                                <i class="icon icon-arrow-r5 arrow"></i>
                                <i class="icon icon-step2"></i>
                                <p class="info">运至国内保税区存储</p>
                            </li>
                            <li class="col">
                                <i class="icon icon-arrow-r5 arrow"></i>
                                <i class="icon icon-step3"></i>
                                <p class="info">用户下单</p>
                            </li>
                            <li class="col">
                                <i class="icon icon-arrow-r5 arrow"></i>
                                <i class="icon icon-step4"></i>
                                <p class="info">海关等政府部门检查清关</p>
                            </li>
                            <li class="col">
                                <i class="icon icon-step5"></i>
                                <p class="info">国内物流配送</p>
                            </li>
                        </ul>
                    </div>

                    <!--END/跨境购物流程-->

                    <!--安全-->
                    <ul class="ui-cols-3 save-cols">
                        <li class="col">
                            <div class="inner-wrap">
                                <strong class="tit">正品保障</strong>
                                <p class="des">所有商品海外直采，全程政府监管</p>

                            </div>
                        </li>
                        <li class="col">
                            <div class="inner-wrap">
                                <strong class="tit">告别传统海淘漫长等待</strong>
                                <p class="des">海外商品提前存储在保税区，下单后直接在保税仓发货</p>
                            </div>

                        </li>
                        <li class="col">
                            <div class="inner-wrap ui-nobrd">
                                <strong class="tit">支付便捷售后无忧</strong>
                                <p class="des">完全人民币支付，售后服务由阿福易购全程承担</p>

                            </div>
                        </li>

                    </ul>
                    <!--END/安全-->

                    <div class="pre" style="text-align:center;">{!! $order_goods->goods_content !!}</div>
                </div>

            </div>



        </div>

    </div>
</div>
<!--END/页面主体-->


<!--公共尾部-->
@include('front.common.footer')
        <!--END/公共尾部-->


<!--公用js引用-->
@include('front.common.script')
        <!--END/公用js引用-->
</body>
</html>
